package com.caigou.service;

import com.caigou.bean.cms.entity.ArticlePromoter;
import com.caigou.bean.cms.param.ArticlePromoterQueryParam;
import com.caigou.bean.cms.param.ArticlePromoterParam;
import com.caigou.pojo.DictionaryOtherList;
import com.caigou.util.Result;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ArticlePromoterService {
    List<DictionaryOtherList> loadArticlePromoterList();

    ArticlePromoter selectByPrimaryKey(Integer id);

    PageInfo<ArticlePromoter> queryArticlePromoter(ArticlePromoterQueryParam articlePromoterQueryParam);

    List<ArticlePromoter> queryArticlePromoterAll(ArticlePromoterQueryParam articlePromoterQueryParam);

    Result saveOrUpdateArticlePromoter(MultipartFile file, Integer id, String name, String authorPost, String authorIntro,
                                       String contractInfo, String notes, String userId);

    Result getArticlePromoter(ArticlePromoterParam articlePromoterParam);

    Result getArticlePromoterByArticlePromoterId(Integer articlePromoterId);

    Result updateArticlePromoterIsForbid(ArticlePromoterParam articlePromoterParam);

    List<String> loadPromoterIdByName(String author);

    void updateArticleDetailHtmlByPromoterId(Integer promoterId);
}
